import request from "@/network/request";


export function list(pageModel) {
    return request({
        url: '/system/resource/list',
        params: pageModel
    })
}

// export function saveResource(params) {
//     return request({
//         url: '/system/resource/save',
//         data: params
//     })
// }
//
// export function deleteResource(id) {
//     return request({
//         url: '/system/resource/delete/' + id,
//     })
// }

export function allResource() {
    return request({
        url: '/system/resource/allResource'
    })
}

export function saveResourceConfig(jsonStr) {
    console.log(jsonStr)
    return request({
        url: '/system/resource/saveResourceConfig',
        data:
        jsonStr


    })
}